package com.baibei.order.bill.orderrecord;

import com.baibei.basic.IPageView;
import com.baibei.basic.IPresenter;
import com.baibei.basic.IPresenterView;
import com.baibei.model.OrderInfo;
import com.baibei.model.SumClosedOrderInfo;

/**
 * 订货记录契约类
 * Created by shenminjie on 2017/8/17.
 * mail:shenminjie@100bei.com
 */

public class OrderRecordContract {

    /**
     * 视图层
     * 分页
     */
    interface OrderRecordView extends IPresenterView, IPageView<OrderInfo> {

        /**
         * 完成刷新
         */
        void hideRefreshLayout();

        /**
         * 加载订单统计
         *
         * @param info info
         */
        void onLoadOrderSum(SumClosedOrderInfo info);

        /**
         * 加载失败
         * @param msg msg
         */
        void onLoadOrderSumFailed(String msg);
    }

    /**
     * 展示层
     */
    interface Presenter extends IPresenter {

        /**
         * 加载更多
         */
        void loadMore();

        /**
         * 获取订单订单差价
         */
        void getOrderSum();
    }
}
